package com.ling.pl.autoproject.definition.architecture.model;

import com.ling.pl.core.commons.annotation.Dict;
import com.ling.pl.core.commons.annotation.ModelProperty;

import javax.persistence.Column;

public class Template {

    @Column(name = "NAME", length = 150)
    @ModelProperty(comment = "编辑器/部件类型/视图代码类型")
    String name;

    @Column(name = "CODE_TYPE", length = 150)
    @ModelProperty(comment = "代码类型")
    @Dict(code = "builder.template.codeType", des = "CTRL,CONTROLLER,PART,HTML")
    String codeType;

    @Column(name = "TEMPLATE", length = 1500)
    @ModelProperty(comment = "代码模板")
    String template;

    @Column(name = "REMARK", length = 1500)
    @ModelProperty(comment = "备注")
    String remark;
}
